<?php
class ModelTotalProductSpecial extends Model {
	public function getTotal(&$total_data,$product_special_id,$quantity) {
	    $this->load->model('checkout/product_special');
	    $special_info = $this->model_checkout_product_special->getProductSpecial($product_special_id);
		$total_data[] = array(
			'code'       => 'product_special',
			'title'      => '秒杀',
			'value'      => $special_info['price']*$quantity,
			'sort_order' => 10,
		    'object_id'  =>$product_special_id,
		    'type'       => 4,  //1:小计  2:总计   3:折扣   4:秒杀  5:使用券  6:运费
		    'product_id' =>$special_info['product_id']
		);
	}
}